package com.falcon.util;

import org.apache.shiro.crypto.hash.Sha384Hash;

public class PasswordUtil {
    // 将传进来密码加密方法
    public static String encrypt(String data) {
        String sha384Hex = new Sha384Hash(data).toBase64();
        System.out.println(data + "======>" + sha384Hex);
        return sha384Hex;
    }
}
